import request from '@/utils/request'

// 查询BwShopCoupon列表
export function listBwShopCoupon(query) {
    return request({
        url: '/api/v1/bw/shopCouponList',
        method: 'get',
        params: query
    })
}

// 查询BwShopCoupon详细
export function getBwShopCoupon (shopCouponId) {
    return request({
        url: '/api/v1/bw/shopCoupon/' + shopCouponId,
        method: 'get'
    })
}


// 新增BwShopCoupon
export function addBwShopCoupon(data) {
    return request({
        url: '/api/v1/bw/shopCoupon',
        method: 'post',
        data: data
    })
}

// 修改BwShopCoupon
export function updateBwShopCoupon(data) {
    return request({
        url: '/api/v1/bw/shopCoupon',
        method: 'put',
        data: data
    })
}

// 删除BwShopCoupon
export function delBwShopCoupon(shopCouponId) {
    return request({
        url: '/api/v1/bw/shopCoupon/' + shopCouponId,
        method: 'delete'
    })
}
